<div class="payment_top">
    <a ui-sref="homepage"><img class="backImg" src="images/leftarrow.png"></a>
    <span class="payment_title">桌号管理</span>
    <img ui-sref="grouplist" class="backImg_right" src="images/fileedit.png">
</div>
<div class="usermember_center">
    <ul class="tablehome_item">
        <li  data-ng-init="vm.getdetail(table)" ng-repeat="table in vm.tablelist | orderBy:['-status','text']">
            <div ui-sref="tabledetail({tableid:table.tableid})">
                <div style="height: 40px">
                    <div class="tableitem_text">{{table.tablename}}</div>
                    <div class="tableitem_paint">
                        <span style="color: red">{{table.text | ele_statusFilter}}</span>
                        <span ng-style="{color:(table.status==4)? 'red':'#a7a7a7'}">{{table.status |stautusFiter}}</span>
                        <img class="tableitem_img"src="images/rightarrow.png">
                    </div>
                </div>
                <div style="height: 40px"  >
                    <div style="color: #a7a7a7" class="tableitem_text" ng-repeat="dev in table.devstatus">
                        <span style="display: inline-block;margin-right: 5px;">{{dev.devid}}</span>
                    </div>
                    <div style="color: #a7a7a7" class="tableitem_paint">
                        <span class="tablenum_span" >{{table.groupname}}</span>
                    </div>
                </div>
            </div>

        </li>
    </ul>
    <div class="tablenum_img" ng-click="vm.openAddOpen()"><img src="images/add.png"></div>
</div>
<div class="modal fade" id="tablenumModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" style="margin-top: 65px">
    <div class="modal-dialog modal_content" role="document">
        <div class="modal-content model_content_sub">
            <div class="modal-body">
                <input id="inputname" class="tablenum_input input-currency" placeholder="输入桌台名" ng-model="vm.tablename" ng-focus="vm.getFocus()" maxlength="8">
            </div>
            <div class="margin_top_none">
                <button id="cancelbtn" type="button" class="detail_btn detail_btn_active" data-dismiss="modal" >取消</button>
                <button id="surebtn" type="button" class=" detail_btn" ng-click="vm.addGroup(vm.tablename)">确定</button>
            </div>
        </div>
    </div>
</div>
<message-Component message-visible="vm.messageVisible" message="vm.message"  surebtn="vm.surebtn()"
                   cancelbtn="vm.cancelbtn()"></message-Component>